import React, { useEffect, useState } from 'react'

function HooksTest() {
  const [dom, setDom] = useState(null)
  useEffect(() => {
    console.log('dom:', dom)
    console.log('dom 修改3:', dom)
  }, [dom])
  return <div ref={dom}>test</div>
}
export default HooksTest
